package robots.analyser;

import static org.junit.Assert.*;

import java.util.ArrayList;

import org.junit.Test;

public class BarcodeAnalyserTest {
	private BarcodeAnalyser barcode=new BarcodeAnalyser();
	@Test
	public void test() {
		ArrayList<String> barcodes = barcode.getBarcodes();
		boolean fail=false;
		for (int i = 0; i < barcodes.size(); i++) {
			for (int j = 0; j<i; j++) {
				if(barcodes.get(i).equals(barcodes.get(j)))
					fail=true;
			}
		}
		assertFalse(fail);
	}

}
